package www.superbytecode.com.manager;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName superbytecode-builder
 * @Package www.superbytecode.com.manager
 * @ClassName ConnectionManager
 * @Description sqlite数据库配置
 * @Author [Lance Ting]
 * @Date 2020/7/14 20:37
 * @Version V1.0
 * @Copyright: 2020 www.super-bytecode.com Inc. All rights reserved.
 * @TODO：本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
public class ConnectionManager {

    /*private static final String DB_URL = "jdbc:sqlite:./config/sqlite3.db";*/
    private static final String DB_URL = "jdbc:sqlite:./db/sqlite3.db";

    public static Connection getConnection() throws Exception {
        Class.forName("org.sqlite.JDBC");
        Connection conn = DriverManager.getConnection(DB_URL);
        return conn;
    }
}